<?php

class GuestbookModel extends Model 
{

	protected $_validate=array(
		array('title','require','留言标题不能为空',0,'','add'),
		array('username','require','用户名不能为空',0,'','add'),
		array('content','require','留言内容不能为空',0,'','add'),
		array('email','require','电子邮箱不能为空',0,'','add'),			
	);	
	protected $_auto  =  array(  	
        array('addtime','time','ADD','function'),
	);
}
?>